//
//  DetectionViewController.h
//  Anyair
//
//  Created by karlcool on 14-5-15.
//  Copyright (c) 2014年 Karlcool. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <AVFoundation/AVFoundation.h>
#import "BMapKit.h"
#import "EGORefreshTableHeaderView.h"
#import "MDRadialProgressView.h"
#import "MDRadialProgressTheme.h"
#import "MDRadialProgressLabel.h"
#import "SevenSwitch.h"

@interface DetectionViewController : UIViewController <UIScrollViewDelegate,AVAudioPlayerDelegate,EGORefreshTableDelegate,CLLocationManagerDelegate,BMKSearchDelegate,BluetoothDelegate> {
    
    DataModel *thisModel;
    UIScrollView *mainScroll;
    EGORefreshTableHeaderView *refreshHeaderView;//刷新器
    MDRadialProgressView *dataView;//数值盘
    
    int dataType;//0为PM2.5 1为缺氧 2为甲醛 
    
    UILabel *temperatureLabel;//温度
    UILabel *humidityLabel;//湿度
    UILabel *stateLabel;//当前检测状态
    
    UILabel *centerLabel;
    UILabel *smallCenterLabel;
    
    UILabel *pm2_5Label;
    UILabel *pm5Label;
    UILabel *pm10Label;
    
    UILabel *noticeLabel1;
    UILabel *noticeLabel2;
    
    BMKSearch* searchPlace;
    CLLocationManager *locationManager;
    
    int checkFlag;
    
    NSTimer *timeOutTimer;
    
    SevenSwitch *co2Switch;
    NSTimer *co2Timer;
    
    AVAudioPlayer *audioPlayer;
}

- (id)initWithType:(int)type;
@end
